/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package composite.boolean_expression.factb.factb_expr;

import composite.Component;
import composite.boolean_expression.factb.FactbExpr;
import composite.number_expression.Expr;
import visitor.Visitor;

/**
 *
 * @author Antonio
 */
public class RelopLt extends FactbExpr {

    public RelopLt(Expr left, Expr right) {
       
        if (left == null || right == null) {

            throw new NullPointerException();
        }

        this.left = left;
        this.right = right;
    }

    @Override
    public void accept(Visitor v) {

        v.visit(this);
    }

    @Override
    public String toString() {

        StringBuilder sb = new StringBuilder();

        sb.append(super.getleft()).append(" < ").append(super.getRight());
        return sb.toString();
    }

    @Override
    public void add(Component c) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
